<?php
namespace App\Models\Entity\bqhot;

use Swoft\Db\Model;
use Swoft\Db\Bean\Annotation\Column;
use Swoft\Db\Bean\Annotation\Entity;
use Swoft\Db\Bean\Annotation\Id;
use Swoft\Db\Bean\Annotation\Required;
use Swoft\Db\Bean\Annotation\Table;
use Swoft\Db\Types;

/**
 * 表情

 * @Entity(instance="bqhot.master")
 * @Table(name="bqhot_biaoqing")
 * @uses      Biaoqing
 */
class Biaoqing extends Model
{
    /**
     * @var int $id 
     * @Id()
     * @Column(name="id", type="integer")
     */
    private $id;

    /**
     * @var int $uid 
     * @Column(name="uid", type="integer", default=1)
     */
    private $uid;

    /**
     * @var string $icon 
     * @Column(name="icon", type="string", length=250, default="")
     */
    private $icon;

    /**
     * @var string $title 
     * @Column(name="title", type="string", length=250)
     * @Required()
     */
    private $title;

    /**
     * @var string $content 
     * @Column(name="content", type="string", length=250)
     * @Required()
     */
    private $content;

    /**
     * @var string $img 
     * @Column(name="img", type="text", length=65535)
     * @Required()
     */
    private $img;

    /**
     * @var int $addtime 
     * @Column(name="addtime", type="integer", default=0)
     */
    private $addtime;

    /**
     * @var int $type 1,逗比搞笑
2,明星表情
     * @Column(name="type", type="integer", default=1)
     */
    private $type;

    /**
     * @var int $views 浏览次数
     * @Column(name="views", type="integer", default=1)
     */
    private $views;

    /**
     * @var int $good 好评次数
     * @Column(name="good", type="integer", default=0)
     */
    private $good;

    /**
     * @param int $value
     * @return $this
     */
    public function setId(int $value)
    {
        $this->id = $value;

        return $this;
    }

    /**
     * @param int $value
     * @return $this
     */
    public function setUid(int $value): self
    {
        $this->uid = $value;

        return $this;
    }

    /**
     * @param string $value
     * @return $this
     */
    public function setIcon(string $value): self
    {
        $this->icon = $value;

        return $this;
    }

    /**
     * @param string $value
     * @return $this
     */
    public function setTitle(string $value): self
    {
        $this->title = $value;

        return $this;
    }

    /**
     * @param string $value
     * @return $this
     */
    public function setContent(string $value): self
    {
        $this->content = $value;

        return $this;
    }

    /**
     * @param string $value
     * @return $this
     */
    public function setImg(string $value): self
    {
        $this->img = $value;

        return $this;
    }

    /**
     * @param int $value
     * @return $this
     */
    public function setAddtime(int $value): self
    {
        $this->addtime = $value;

        return $this;
    }

    /**
     * 1,逗比搞笑
2,明星表情
     * @param int $value
     * @return $this
     */
    public function setType(int $value): self
    {
        $this->type = $value;

        return $this;
    }

    /**
     * 浏览次数
     * @param int $value
     * @return $this
     */
    public function setViews(int $value): self
    {
        $this->views = $value;

        return $this;
    }

    /**
     * 好评次数
     * @param int $value
     * @return $this
     */
    public function setGood(int $value): self
    {
        $this->good = $value;

        return $this;
    }

    /**
     * @return mixed
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * @return mixed
     */
    public function getUid()
    {
        return $this->uid;
    }

    /**
     * @return string
     */
    public function getIcon()
    {
        return $this->icon;
    }

    /**
     * @return string
     */
    public function getTitle()
    {
        return $this->title;
    }

    /**
     * @return string
     */
    public function getContent()
    {
        return $this->content;
    }

    /**
     * @return string
     */
    public function getImg()
    {
        return $this->img;
    }

    /**
     * @return int
     */
    public function getAddtime()
    {
        return $this->addtime;
    }

    /**
     * 1,逗比搞笑
2,明星表情
     * @return mixed
     */
    public function getType()
    {
        return $this->type;
    }

    /**
     * 浏览次数
     * @return mixed
     */
    public function getViews()
    {
        return $this->views;
    }

    /**
     * 好评次数
     * @return int
     */
    public function getGood()
    {
        return $this->good;
    }

}
